package ar.com.fiuba.application.impl;

import java.util.Map;

import ar.com.fiuba.application.api.CoefficientCalculationStrategySelector;
import ar.com.fiuba.domain.CoefficientCalculationStrategy;

public class CoefficientCalculationStrategySelectorImpl implements CoefficientCalculationStrategySelector {

	private Map<String, CoefficientCalculationStrategy> strategies;

	public CoefficientCalculationStrategySelectorImpl(Map<String, CoefficientCalculationStrategy> strategies) {
		this.strategies = strategies;
	}

	public CoefficientCalculationStrategy resolveCoefficientCalculationStrategy(String strategyName) {
		return strategies.get(strategyName);
	}

}
